package com.b.sts.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;


/**
 * <p>
 * 商品表
 * </p>
 *
 * @author b
 * @since 2023-07-12
 */
@Getter
@Setter
@TableName("car")
public class CarEntity {

    /**
     * 商品ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer productId;
    private Integer userId;
    /**
     * 创建时间
     */
    private Date createTime;
    @TableField(exist = false)
    private ProductEntity productEntity;
}
